import type { XtxGuessInstance } from '@/types/component'
import { ref } from 'vue'
/**
 * 猜你喜欢组合式函数
 * @returns
 */
export const useGuessLike = () => {
  const guessRef = ref<XtxGuessInstance>()
  const onScrolltolower = () => {
    guessRef.value?.getMore()
  }
  //返回ref和事件处理函数
  return {
    guessRef,
    onScrolltolower,
  }
}
